package com.guass.nettyprotostuff.service.impl;

import com.guass.nettyprotostuff.service.MqService;
import lombok.extern.slf4j.Slf4j;
import org.apache.rocketmq.client.producer.SendCallback;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.stereotype.Service;

/**
 * @author guass
 * @date 2022年07月11日 11:17
 */
@Service
@Slf4j
@ConditionalOnProperty(prefix = "host.info", name = "mq-mode",havingValue = "0")
public class RedisMqServiceImpl implements MqService {

    @Override
    public boolean getMqStatus() {
        return false;
    }

    @Override
    public void setMqStatus(boolean isMqOk) {

    }

    @Override
    public boolean sendSyncMessage(String message) {
        return false;
    }

    @Override
    public void sendAsyncMessage(String message) {

    }
}
